/*
Author: Vladimir Kharlampidi, The iDangero.us
*/
document.createElement('header');
document.createElement('footer');

$(function(){


    //Main Swiper
    $(".arrow-left").hide();
    var swiperPagina4 = new Swiper('.swiperPagina4', {
        pagination: '.paginationPagina4',
        grabCursor: true,
        onSlideChangeEnd: function () {
            if (swiperPagina4.activeSlide == 0)
                $(".arrow-left").hide();
            else
                $(".arrow-left").show();

            if (swiperPagina4.activeSlide == 3)
                $(".arrow-right").hide();
            else
                $(".arrow-right").show();

        }
    });
    //Navigation arrows
    $('.arrow-left').click(function (e) {
        e.preventDefault()
        swiperPagina4.swipePrev()
    });
    $('.arrow-right').click(function (e) {
        e.preventDefault()
        swiperPagina4.swipeNext()
    });
    //Clickable pagination
    $('.paginationPagina4 .swiper-pagination-switch').click(function () {
        swiperPagina4.swipeTo($(this).index())
    });




    
})

